package com.dainel.mybatis.demo.bean;


import com.gitee.sunchenbin.mybatis.actable.annotation.ColumnComment;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "gs_base_code")
public class CodeBean extends BaseBean {

    @Id
    @Column(name = "code", columnDefinition = "varchar(32) comment '短码的主键'")
    private String code;

    @Column(name = "content", columnDefinition = "varchar(255) comment '存储的内容'")
    private String content;

    @Column(name = "target_key", columnDefinition = "varchar(255) comment '存储内容的主键'")
    private String targetKey;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTargetKey() {
        return targetKey;
    }

    public void setTargetKey(String targetKey) {
        this.targetKey = targetKey;
    }
}
